/**
 * 对象类型
 * 
 * @flow
 */

// const obj1: { foo: string, bar: number } = { foo: 'string', bar: 10 }
// const obj2: { foo?: string, bar: number } = { bar: 10 }
const obj3: { [string]: string } = {'key1':'','key2':''}

// obj3.key1 = 'value1'
// obj3.key2 = 'value2'

// console.log(obj3)